// 严格模式
// import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { RouterProvider } from 'react-router-dom';
import routers from './router/index';
import { ConfigProvider } from 'antd'
import zhCN from 'antd/locale/zh_CN'; // 引入中文包
import '@ant-design/v5-patch-for-react-19'; // 解决antd5与react19不兼容问题
//导入状态管理
import { store } from './store/index';
import { Provider } from 'react-redux';
createRoot(document.getElementById('root')).render(

  <ConfigProvider locale={zhCN}>
    {/* //将store注入到Provider中 作为props传递 实现全局状态管理 */}
    <Provider store={store}>
      <RouterProvider router={routers} />
    </Provider>

  </ConfigProvider>
)
